//
//  SDViewController.m
//  objective_c_language
//
//  Created by 王玉龙 on 2018/6/27.
//  Copyright © 2018年 longlong. All rights reserved.
//

#import "SDViewController.h"
//#import <SDWebImage/SDWebImage>
#import <SDWebImage/UIImageView+WebCache.h>

@interface SDViewController ()

@end

@implementation SDViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:imageView];
    imageView.contentMode = UIViewContentModeScaleAspectFill;
    
//    [imageView sd_setShowActivityIndicatorView:YES];
    [imageView sd_setImageWithURL:[NSURL URLWithString:@"https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1145462565,3995615030&fm=27&gp=0.jpg"] placeholderImage:[UIImage imageNamed:@"loginBack"]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
